package com.yfqy.app.modules.wechat.model;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;


@Data
public class WechatRefundRequest {
    // 微信支付订单号，transaction_id、out_trade_no二选一，如果同时存在优先级：transaction_id > out_trade_no
    private String transactionId;

    // 商户订单号
    private String outTradeNo;

    @NotBlank(message = "商户退款单号不能为空")
    private String outRefundNo;

    @NotNull(message = "订单总金额不能为空")
    private Integer totalFee;

    @NotNull(message = "退款金额不能为空")
    private Integer refundFee;

    // 退款货币种类
    private String refundFeeType;

    // 退款原因
    private String refundDesc;

    // 退款资金来源
    private String refundAccount;

    // 退款结果通知url
    private String notifyUrl;
}
